package com.jml.spring.IOC.注解方式.service.impl;


import com.jml.spring.IOC.注解方式.annotation.ExtResource;
import com.jml.spring.IOC.注解方式.annotation.ExtService;
import com.jml.spring.IOC.注解方式.dao.UserDao;
import com.jml.spring.IOC.注解方式.service.OrderService;
import com.jml.spring.IOC.注解方式.service.UserService;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

//user 服务层
@ExtService
public class UserServiceImpl implements UserService {

	@ExtResource
	private OrderService orderServiceImpl;

	public void add() {
		orderServiceImpl.addOrder();
		System.out.println("--#########往数据库添加数据...");
	}
}
